package com.vgemv.jsutilitysdk.JsButtonTwo;

import android.graphics.Rect;
import android.util.Size;
import android.view.ViewGroup;

import com.vgemv.jsutilitysdk.JsColorManager.JsColorManager;

public class JsButtonSingleStateVm {

    public int mi_width = 0;
    public int mi_height = 0;

    public Integer mI_cornerRadius = 10;
    public Integer mI_borderWidth = 4;
    public Integer mI_borderColor = JsColorManager.grayColorMax255(0);
    public int mi_textColor = JsColorManager.grayColorMax255(0);

    public Integer mI_backgroundColor;

    public int mi_textSize = 12;
    public boolean isNeedDraw() {
        return true;
    }

    //text
    public String text;
    public Rect textFrame;
    public int mi_textWidth = ViewGroup.LayoutParams.MATCH_PARENT;
    public int mi_textHeight = ViewGroup.LayoutParams.MATCH_PARENT;
    public int mi_textX = 0;
    public int mi_textY = 0;

    //image
    public Integer mI_imageId;
    public Rect imageFrame;
    public int mi_imageWidth = ViewGroup.LayoutParams.MATCH_PARENT;
    public int mi_imageHeight = ViewGroup.LayoutParams.MATCH_PARENT;
    public int mi_imageX = 0;
    public int mi_imageY = 0;


    public Size size() {
        Size size =  new Size(mi_width,mi_height);

        return size;
    }
}


